package cn.tkb.order.service;

import cn.tkb.basic.service.IBaseService;
import cn.tkb.basic.util.PageQuery;
import cn.tkb.order.domain.AdoptOrder;
import cn.tkb.order.query.AdoptOrderQuery;
import cn.tkb.user.domain.LoginInfo;

import java.util.Map;

public interface IAdoptOrderService extends IBaseService<AdoptOrder> {
    /**
     * 创建领养订单
     * @param params
     * @param currentLoginInfo
     * @return
     */
    String adopt(Map<String, Object> params, LoginInfo currentLoginInfo);

    /**
     * 用户查询领养订单业务流
     * @param query
     * @param currentLoginInfo
     * @return
     */
    PageQuery<AdoptOrder> user(AdoptOrderQuery query, LoginInfo currentLoginInfo);

    /**
     * 平台管理员或者店铺自己查看领养订单
     * @param query
     * @param currentLoginInfo
     * @return
     */
    PageQuery<AdoptOrder> admin(AdoptOrderQuery query, LoginInfo currentLoginInfo);
}
